input {
  -webkit-appearance: none;
  border-radius: 0;
}

.pages {
  &.has-header {
    padding-top: (82rem/28);
  }
  &.has-footer {
    padding-bottom: (78rem/28);
  }
  &.site-news {
    & > .news {
      padding: 0;
      .title {
        font-size: (36rem/28);
        color: #565656;
      }
      .date {
        margin-top: (22rem/28);
        font-size: 1rem;
        color: #a9a9a9;
      }
      .content {
        color: #565656;
        font-size: (24rem/28) !important;
        line-height: 180%;
        img {
          max-width: 100% !important;
          height: auto;
          display: block;
          margin: (10rem/28) auto;
        }
      }
    }
  }
  &.site-win {
    background: #cf2623;
    .content {
      padding: 0 1rem;
      height: 100%;
      background: url("../images/site-win-bg.png") center no-repeat;
      background-size: contain;
      overflow: scroll;
      .sub-title {
        font-size: (36rem/28);
        color: white;
        margin: 1rem auto;
        text-align: center;
      }
      .title {
        text-align: center;
        font-size: (48rem/28);
        color: white;
      }
      .list {
        border: 3px solid #edba29;
        border-radius: 8px;
        margin-top: 1rem;
        height: 80%;
        overflow: hidden;
        ul {
          li {
            display: flex;
            align-items: center;
            justify-content: space-between;
            text-align: center;
            color: white;
            font-size: 1rem;
            padding: (15rem/28) 0;
            span {
              flex: 1;
              white-space: nowrap;
              overflow: hidden;
              text-overflow: clip;
            }
            &.header {
              font-size: (36rem/24);
              color: #fcfa45;
              padding-top: 1rem;
              padding-bottom: (24rem/28);
            }
          }
        }
      }
    }
  }
  @keyframes btn-join-animation {
    from {
      transform: scale(1);
    }
    to {
      transform: scale(.8);
    }
  }
  &.site-shake-splash {
    background: #cf2623;
    & > .content {
      background: url("../images/shake-splash-bg.png") no-repeat;
      background-size: contain;
      height: 100%;
      position: relative;
      overflow: scroll;
      .banner {
        margin: (20rem/28) auto 0 auto;
        width: (504rem/28);
        height: (504rem/28);
        background: url("../images/shake-splash-banner.png") no-repeat;
        background-size: 100%;
        position: relative;
        .btn-shake {
          font-size: 0;
          display: block;
          background: url("../images/shake-splash-button.png") no-repeat;
          width: (483rem/28);
          height: (104rem/28);
          position: absolute;
          top: (371rem/28);
          left: 50%;
          margin-left: -(483rem/56);
          background-size: 100%;
        }
      }
      .tips {
        width: (399rem/28);
        height: (38rem/28);
        background: url("../images/shake-tips.png") no-repeat;
        background-size: contain;
        //font-size: (34rem/28);
        //color: #fafbfb;
        text-align: center;
        margin-top: 1rem;
        margin-left: auto;
        margin-right: auto;
        opacity: .86;
      }
      @media all and (max-width: 320px) {
        .gift {
          height: (400rem/28) !important;
          .btn-join {
            margin: (250rem/28) auto 0 auto !important;
          }
          .link-list {
            margin-top: (15rem/28) !important;
          }
        }
      }
      .gift {
        width: 100%;
        height: (484rem/28);
        background: url("../images/shake-splash-gift.png") no-repeat;
        background-size: cover;
        position: absolute;
        bottom: 0;
        left: 0;
        z-index: 1;

        .btn-join {
          display: block;
          margin: (292rem/28) auto 0 auto;
          animation: btn-join-animation linear 2s alternate infinite;
          text-decoration: none;
        }
        .link-list {
          margin-top: (32rem/28);
          text-align: center;
          a {
            display: inline-block;
            font-size: 1rem;
            color: #fb4a78;
            text-decoration: none;

            margin-right: (74rem/28);
            position: relative;
            &:last-child {
              margin-right: 0;
              &:after {
                display: none;
              }
            }

            &:after {
              z-index: 2;
              content: ' ';
              position: absolute;
              height: 100%;
              width: 2px;
              background: #f09108;
              top: 0;
              right: -(40rem/28);
              margin-left: -1px;
            }
          }
        }
      }
    }
  }
  @keyframes upAnimation {
    0% {

    }
    50% {

    }
    100% {

    }
  }
  @keyframes shake {
    0%, 100% {
      transform: translate(0, 0);
    }
    10%, 30%, 50%, 70%, 90% {
      transform: translate(-10px, -10px);
    }
    20%, 40%, 60%, 80% {
      transform: translate(10px, 10px);
    }
  }
  &.site-shake {
    background-size: cover;
    background: #bf232b;
    overflow: hidden;
    position: relative;
    & > .content {
      height: 43.1rem;
      position: absolute;
      width: 100%;
      z-index: 0;
      left: 0;
      top: 50%;
      margin-top: -(43.1rem/2);
      & > * {
        transition: all .3s;
      }
      &.shaking {
        .shake-up {
          top: -8rem;
        }
        .shake-down {
          bottom: -8rem;
        }
      }
      &.loading {
        .shake-btn {
          display: none;
        }
      }
      .shake-up {
        background: url("../images/shake-up.jpg") no-repeat;
        background-size: cover;
        width: (750rem/28);
        height: (622rem/28);
        position: absolute;
        top: 0;
        left: 50%;
        margin-left: -(750rem/56);
        z-index: 1;
        .phone {
          background: url("../images/shake-hand.png");
          width: (337rem/28);
          height: (371rem/28);
          z-index: 2;
          position: absolute;
          bottom: 0;
          left: 50%;
          margin-left: -(337rem/56);
          background-size: contain;
          animation: shake 1s infinite;
        }
      }
      .shake-down {
        background: url("../images/shake-down.jpg") no-repeat;
        background-size: cover;
        width: (750rem/28);
        height: (588rem/28);
        position: absolute;
        bottom: 0;
        left: 50%;
        margin-left: -(750rem/56);
        z-index: 1;
      }
      .shake-btn {
        display: block;
        background: url("../images/shake-splash-button.png") no-repeat;
        background-size: cover;
        width: (483rem/28);
        height: (104rem/28);
        position: absolute;
        top: (563rem/28);
        left: 50%;
        z-index: 4;
        margin-left: -(483rem/56);
      }
    }
  }
  &.modal-win,
  &.modal-lose {
    position: fixed;
    z-index: 100;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    background: rgba(0, 0, 0, .5);
    &.modal-win {
      & > .content {
        height: (722rem/28);
        margin-top: -(722rem/56);
        & > .image {
          margin: 1rem auto;
          display: block;
          width: 100%;
          height: (200rem/28);
        }
        & > .prize,
        & > .capture {
          font-size: 1rem;
          color: #464646;
          &.capture {
            margin-top: (18rem/28);
          }
        }
        & > .assist-award {
          color: #ed3c2a;
          font-size: 1.2rem;
          text-align: center;
          margin-top: (14rem/28);
        }
        & > .tips {
          background: url("../images/award-tips.png") no-repeat;
          width: (556rem/28);
          background-size: contain;
          height: (73rem/28);
          font-size: 0;
          position: absolute;
          bottom: .4rem;
          left: 50%;
          margin-left: -(556rem/56);
        }
        & > .btn-award {
          margin-left: auto;
          margin-right: auto;
        }
      }
    }
    &.modal-lose {
      & > .content {
        height: (490rem/28);
        margin-top: -(490rem/56);
        & > .message {
          margin-top: (50rem/28);
          text-align: center;
          color: #464646;
          font-size: (34rem/28);
          line-height: 150%;
        }
        & > .btn-replay {
          margin-top: (85rem/28);
          margin-left: auto;
          margin-right: auto;
        }
      }
    }
    & > .btn-close {
      background: url("../images/icon-close.png");
      width: (48rem/28);
      height: (48rem/28);
      position: absolute;
      right: (20rem/24);
      z-index: 101;
      top: (24rem/28);
      background-size: cover;
    }
    & > .content {
      position: absolute;
      top: 50%;
      width: 90%;
      left: 5%;
      background: white;
      border-radius: (16rem/28);
      padding: (18rem/28) (42rem/28);
      box-sizing: border-box;
      & > .title {
        font-size: (42rem/28);
        text-align: center;
        margin-top: (32rem/28);
        color: #ff2812;
      }
      & > hr {
        margin-top: .5rem;
        border: 0;
        border-bottom: 1px solid #d3d3d3;
        margin-bottom: 0;
      }
      & > .btn-action {
        width: (488rem/28);
      }
    }
  }
  &.site-award {
    box-sizing: border-box;
    & > .form {
      padding-bottom: 1rem;
      .license {
        font-size: (22rem/28);
        color: #666666;
        line-height: 1.5;
        text-indent: 2em;
        padding: (18rem/28);
        position: fixed;
        left: 0;
        top: 0;
        z-index: 999;
        width: 100%;
        height: 100%;
        background: white;
        overflow-y: scroll;
        box-sizing: border-box;
        h2 {
          text-align: center;
          font-size: 1.2rem;
        }
        p {
          margin-bottom: .5rem;
        }
        .no-intent {
          text-indent: 0;
        }
        .licensed {
          text-align: right;
        }
        .btn-agree-license {
          background: url("../images/btn-agree-license.png") center no-repeat;
          width: 100%;
          background-size: contain;
          border: 0;
          outline: 0;
          box-sizing: border-box;
          font-size: 0;
          height: (88rem/28);
        }
      }
      .banner {
        width: 100%;
        height: auto;
        display: block;
      }
      .clearfix {
        content: ' ';
        clear: both;
        display: block;
      }
      .pull-left {
        float: left;
      }
      .form-group {
        box-sizing: border-box;
        padding: 0 1rem;
        margin-top: .8rem;
        .label {
          color: #565656;
          display: block;
          font-size: 1rem;
          margin-bottom: (18rem/28);
          .important {
            color: #ff0000;
          }
        }
        .input {
          display: block;
          border: 1px solid #cccdce;
          outline: 0;
          font-size: 1rem;
          color: #333333;
          box-sizing: border-box;
          padding: (20rem/28);
          width: 100%;
        }
        .help-block {
          font-size: 1rem;
          margin-top: .5rem;
          &.danger {
            color: #ff0000;
          }
        }
      }
      .selector {
        display: inline-block !important;
        vertical-align: middle;
        width: auto !important;
      }
      .selector-tips {
        display: inline-block !important;
        vertical-align: middle;
        color: #ff0000;
        margin-left: (98rem/28);
      }
      .actions {
        display: flex;
        align-items: center;
        justify-content: space-between;
        div {
          color: #ff0000;
          font-size: (24rem/28);
          border: 2px solid #d3d4d5;
          padding: (18rem/28) (32rem/28);
        }
      }
      .btn-agree {
        background: url("../images/btn-agree.png") center no-repeat;
        width: 100%;
        background-size: contain;
        border: 0;
        outline: 0;
        box-sizing: border-box;
        font-size: 0;
        height: (88rem/28);
      }
    }
    & > .success {
      box-sizing: border-box;
      margin: (114rem/28) (74rem/28) 0;
      background: #e8e5e5;
      border-radius: 8px;
      padding: (32rem/28) (46rem/28);
      h1 {
        font-size: (48rem/28);
        color: #ce2828;
        text-align: center;
        font-weight: bold;
        margin-bottom: 1rem;
      }
      img {
        display: block;
        width: 100%;
        height: auto;
        margin-bottom: 1rem;
      }
      .message {
        color: #343434;
        font-size: 1rem;
        line-height: 150%;
      }
      .btn-award {
        background: url("../images/btn-award-success.png") no-repeat;
        width: 100%;
        height: 3rem;
        text-align: center;
        line-height: 3rem;
        color: #ffffff;
        font-size: (32rem/28);
        margin-top: 2rem;
        background-size: cover;
      }
    }
  }
}

.uploader {
  display: flex;
  justify-content: space-between;
  height: (80rem/28);
  border-bottom: 2px solid #e5e6e6;
  .tips {
    font-size: 1rem;
    color: #565656;
    align-self: center;
  }
  .btn {
    background: url("../images/choose-image.png") no-repeat;
    align-self: flex-end;
    width: (118rem/28);
    height: (47rem/28);
    font-size: 0;
    background-size: contain;
  }
}